import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
   {
    path:'/',
    redirect:'/discover'
    
   },{
   path:'/discovery',
   name:'discovery',
   component:()=>import('@/views/DiscoveryView.vue')
   },
   {
    path:'/',
    redirect:'/mine'
    
   },{
   path:'/mine',
   name:'mine',
   component:()=>import('@/views/MineView.vue')
   },
   {
    path:'/',
    redirect:'/video'
    
   },{
   path:'/video',
   name:'video',
   component:()=>import('@/views/Videoview.vue')
   },
   {
    path:'/',
    redirect:'/yuncun'
    
   },{
   path:'/yuncun',
   name:'yuncun',
   component:()=>import('@/views/YunCunView.vue')
   },
   {
    path:'/',
    redirect:'/songdeyail'
    
   },{
   path:'/songdeyail',
   name:'songdeyail',
   component:()=>import('@/views/SongDetail.vue')
   }
  ]
})

export default router
